package org.atlantis.evnlib.listener;

import org.atlantis.evnlib.EventArg;
import org.atlantis.evnlib.Log;

public abstract class AbstractListener {

	public void onEvent(EventArg eventArg) {
		try {
			Thread.sleep((long) (Math.random() * 1000));
		} catch (InterruptedException e) {
		}
		Log.debug("[{}:{}]", eventArg.getEventName(), eventArg.getParam());
	}

	public void onEventWithoutPrint(EventArg eventArg, int sleepParam) {
		try {
			Thread.sleep((long) (Math.random() * sleepParam));
		} catch (InterruptedException e) {
		}
	}
}
